{% extends "base_master.html" %}

{% block include %}
<link rel="stylesheet" href="/resources/css/sheet.css" type="text/css" />
{% endblock %}


{% block script %}
$(document).ready(function(){
});
{% endblock %}

{%block body %}
<div>
	<h1>User Information</h1>
	
	UserName : {{profile.user.username}}<br/>
	Email : {{profile.user.email}}<br/>
	TelNo : {{profile.tel_no}}<br/>
	Create Date : {{profile.cdate}}
	
	<p/>
	({{profile.dept.company.group.code}}) {{profile.dept.company.group.name}}
	<p/>
	({{profile.dept.company.code}}) {{profile.dept.company.name}}
	<p/>
	({{profile.dept.code}}) {{profile.dept.name}}
	<p/>
	{{profile.picture}}
	@@@
	<img alt="jot" src="/user/picture/{{profile.picture}}/" width="100" height="100"> 
	@@@<br/>
</div>

<form enctype="multipart/form-data" method="post">
	{{form.non_field_errors}}
	
	<div class="fieldWrapper">
		<li>{{form.picture.errors}}</li>
		<li>
			{{form.picture}}
		</li>
	</div>
	<div class="fieldWrapper">
		<li>{{form.tel_no.errors}}</li>
		<li>
			-_- {{form.tel_no}}
		</li>
	</div>
	<button type="submit">Save</button>
</form>
	
{% endblock %}
